<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//创建一个空的数组
			var array = new Array();
			array[0] = "312";
			console.log(array);
			console.log(array.length);
			array[1] = true;
			console.log(array);
			console.log(array.length);
			
			//使用push 和pop分别对应栈操作的入栈和出栈；
			var array1 = new Array();
			array1.push("张三");
			console.log(array1);
			
		</script>
	</body>
</html>
